<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 200px;
            height: 200px;
            background-color: yellow;
            /*
            overflow 溢出处理
            visible 默认值 溢出可见
            hidden 溢出隐藏 文本裁切
            scroll 滚动条
            auto 自动
            inherit 继承父元素
            */
            overflow: scroll;
            
        }
    </style>
</head>

<body>
    <div>
        Lorem ipsum dolor sit amet, consectetur adipisicing elit. Facere commodi nobis velit perspiciatis soluta
        provident, veritatis quaerat voluptatibus natus maxime dolorem magni nulla, obcaecati saepe, sapiente nostrum
        vel rerum ut.
    </div>
</body>

</html>